#include <stdio.h>
int main()
{
	int i,sum=0;
	for(i=1;i<=30;i++)
	{
		sum=i+sum;
		 
	}
	printf("the result is %d\n",sum);
	i=1;
	sum=0;
	
	while(i<=30)
	{
		i=0;
		sum=i+sum;
	}
	printf("the result is %d\n",sum);
	return 0;
	
	
}
